package com.jielin.handling.service.record;

import com.jielin.handling.entity.record.RecordDetailed;
import com.jielin.handling.entity.record.RecordDetailedAppVo;

import java.util.List;

public interface RecordDetailedService {

    List<RecordDetailed> findAllDetailed();// 查询所有笔录信息

    int addDetailed(RecordDetailed recordDetailed, String ip);// 新增一条笔录信息

    int updateDetailed(RecordDetailed recordDetailed);// 保存更新一条笔录信息

    RecordDetailed findDetailedById(String detailedId);// 根据笔录id查询笔录详细信息

    List<RecordDetailed> findDetailedBySuspectId(String suspectId, String cordId);// 根据嫌疑人id查询对应的笔录所有详细信息

    String printDetailed(String detailedId, String suspectId, String watermark, String number, String askunit,
                         String recordunit, String fileString, Boolean wantWatermark) throws Exception;// 根据嫌疑人id查询嫌疑人信息与根据笔录id查询笔录详细信息并返回生成pdf的路径

    RecordDetailedAppVo findDetailedBySuspectIdAndNum(String suspectId, int number);// 根据嫌疑人id查询笔录信息

    /**
     * 打印
     *
     * @param detailedId 笔录id
     * @param suspectId  嫌疑人id
     * @param watermark  水印内容
     * @return
     */
    String printListDetailed(String detailedId, String suspectId, String watermark, String fileString) throws Exception;
}
